home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / xpcom / nsIConsoleMessage.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  3KB  |  98 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIConsoleMessage.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIConsoleMessage_h__
  6. #define __gen_nsIConsoleMessage_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17.  
  18. /* starting interface:    nsIConsoleMessage */
  19. #define NS_ICONSOLEMESSAGE_IID_STR "41bd8784-1dd2-11b2-9553-8606958fffe1"
  20.  
  21. #define NS_ICONSOLEMESSAGE_IID \
  22.   {0x41bd8784, 0x1dd2, 0x11b2, \
  23.     { 0x95, 0x53, 0x86, 0x06, 0x95, 0x8f, 0xff, 0xe1 }}
  24.  
  25. /**
  26.  * This is intended as a base interface; implementations may want to
  27.  * provide an object that can be qi'ed to provide more specific
  28.  * message information.
  29.  */
  30. class NS_NO_VTABLE nsIConsoleMessage : public nsISupports {
  31.  public: 
  32.  
  33.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_ICONSOLEMESSAGE_IID)
  34.  
  35.   /* readonly attribute wstring message; */
  36.   NS_IMETHOD GetMessage(PRUnichar * *aMessage) = 0;
  37.  
  38. };
  39.  
  40. /* Use this macro when declaring classes that implement this interface. */
  41. #define NS_DECL_NSICONSOLEMESSAGE \
  42.   NS_IMETHOD GetMessage(PRUnichar * *aMessage); 
  43.  
  44. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  45. #define NS_FORWARD_NSICONSOLEMESSAGE(_to) \
  46.   NS_IMETHOD GetMessage(PRUnichar * *aMessage) { return _to GetMessage(aMessage); } 
  47.  
  48. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  49. #define NS_FORWARD_SAFE_NSICONSOLEMESSAGE(_to) \
  50.   NS_IMETHOD GetMessage(PRUnichar * *aMessage) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMessage(aMessage); } 
  51.  
  52. #if 0
  53. /* Use the code below as a template for the implementation class for this interface. */
  54.  
  55. /* Header file */
  56. class nsConsoleMessage : public nsIConsoleMessage
  57. {
  58. public:
  59.   NS_DECL_ISUPPORTS
  60.   NS_DECL_NSICONSOLEMESSAGE
  61.  
  62.   nsConsoleMessage();
  63.  
  64. private:
  65.   ~nsConsoleMessage();
  66.  
  67. protected:
  68.   /* additional members */
  69. };
  70.  
  71. /* Implementation file */
  72. NS_IMPL_ISUPPORTS1(nsConsoleMessage, nsIConsoleMessage)
  73.  
  74. nsConsoleMessage::nsConsoleMessage()
  75. {
  76.   /* member initializers and constructor code */
  77. }
  78.  
  79. nsConsoleMessage::~nsConsoleMessage()
  80. {
  81.   /* destructor code */
  82. }
  83.  
  84. /* readonly attribute wstring message; */
  85. NS_IMETHODIMP nsConsoleMessage::GetMessage(PRUnichar * *aMessage)
  86. {
  87.     return NS_ERROR_NOT_IMPLEMENTED;
  88. }
  89.  
  90. /* End of implementation class template. */
  91. #endif
  92.  
  93. #define NS_CONSOLEMESSAGE_CID \
  94. { 0x56c9d666, 0x1dd2, 0x11b2, { 0xb4, 0x3c, 0xa8, 0x4b, 0xf3, 0xb3, 0xec, 0xbb }}
  95. #define NS_CONSOLEMESSAGE_CONTRACTID "@mozilla.org/consolemessage;1"
  96.  
  97. #endif /* __gen_nsIConsoleMessage_h__ */
  98.